import request from '@/utils/request';

export function selectAll() {
  return request({
    url: `/MaintenanceRecord/bileiqi/selectAll`,
    method: 'get'
  });
}

export function addBileiqi(data) {
  return request({
    url: `/MaintenanceRecord/bileiqi/add`,
    method: 'post',
    data: data
  });
}

export function updateBileiqi(blqid, data) {
  return request({
    url: `/MaintenanceRecord/bileiqi/update/${blqid}`,
    method: 'put',
    data: data
  });
}

export function deleteBileiqi(blqid) {
  return request({
    url: `/MaintenanceRecord/bileiqi/delete/${blqid}`,
    method: 'delete'
  });
}

export function downloadBileiqi() {
  return request({
    url: `/MaintenanceRecord/bileiqi/download`,
    method: 'GET',
    responseType: 'blob'
  });
}